package com.demo.youxuanmall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("order_item")
@JsonIgnoreProperties(value = {"handler"})
public class OrderItem {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long userId;
    
    private String orderNo;
    
    private Long productId;
    
    private String productName;
    
    private String productImage;
    
    private BigDecimal currentPrice;
    
    private Integer quantity;
    
    private BigDecimal totalPrice;
    
    private LocalDateTime createTime;
    
    private LocalDateTime updateTime;
} 